package com.zx.idc.backend.gui.scheduler.report.shield;


import com.zx.idc.ds.report.rshield.service.IRShieldMonService;
import org.quartz.*;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * 屏蔽统计月报 job
 */
@PersistJobDataAfterExecution
@DisallowConcurrentExecution
public class RShieldMonJob implements Job {
    private static final Logger LOG = LoggerFactory.getLogger(RShieldMonJob.class);
    @Autowired
    private IRShieldMonService shieldMonService;

    @Override
    public void execute(JobExecutionContext context) throws JobExecutionException {
        LOG.info("Aggregate shield monthly report job start...");
        shieldMonService.aggregate();
        LOG.info("Aggregate shield monthly report job done.");
    }

}
